import 'package:equatable/equatable.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter_roujiaosuo/flutter_bloc/requests/models/SupplyModel.dart';
import 'package:meta/meta.dart';

@immutable
abstract class SupplyState extends Equatable {
  SupplyState([List props = const []]) : super(props);
}

class InitialSupplyState extends SupplyState {}

class LoadingSupplyState extends SupplyState {}

class LoadedSupplyState extends SupplyState {
  final Supply supply;
  LoadedSupplyState({@required this.supply})
      : assert(supply != null),
        super();
}

class ErrorSupplyState extends SupplyState {}
